home *** CD-ROM | disk | FTP | other *** search
- --- 1.1 1994/01/05 23:46:34
- +++ general.c 1994/01/18 01:23:44
- @@ -695,6 +695,7 @@
- #define to_lower(c) (uppercase_p(c) ? ((c) + 32) : (c))
- #endif /* to_upper */
-
- +#if !defined (atarist)
- /* Compare at most COUNT characters from string1 to string2. Case
- doesn't matter. */
- int
- @@ -732,6 +733,7 @@
- }
- return (*string1 | *string2);
- }
- +#endif /* !atarist */
-
- /* Set the environment variables $LINES and $COLUMNS in response to
- a window size change. */
- --- 1.1 1994/01/05 23:46:34
- +++ jobs.c 1994/01/06 00:24:16
- @@ -185,7 +185,7 @@
- static void pipe_read (), pipe_close ();
- #endif
-
- -#if !defined (_POSIX_VERSION)
- +#if !defined (_POSIX_VERSION) && !defined(atarist)
-
- /* These are definitions to map POSIX 1003.1 functions onto existing BSD
- library functions and system calls. */
- --- 1.1 1994/01/05 19:04:08
- +++ machines.h 1994/01/06 17:59:24
- @@ -1629,6 +1629,129 @@
- # undef HAVE_WAIT_H
- #endif /* cadmus */
-
- +/* ************************ */
- +/* */
- +/* Atari ST with MiNT */
- +/* */
- +/* ************************ */
- +#if defined (atarist)
- +# define M_MACHINE "atarist"
- +# define M_OS "MiNT"
- +
- +/* Required libraries for building on this system. */
- +# define REQUIRED_LIBRARIES
- +
- +/* Define HAVE_SYS_SIGLIST if your system has sys_siglist[]. */
- +# define HAVE_SYS_SIGLIST
- +
- +/* Undef HAVE_ALLOCA if you are not using Gcc, and neither your library
- + nor compiler has a version of alloca (). In that case, we will use
- + our version of alloca () in alloca.c */
- +/* #undef HAVE_ALLOCA */
- +
- +/* Undef USE_GNU_MALLOC if there appear to be library conflicts, or if you
- + especially desire to use your OS's version of malloc () and friends. We
- + reccommend against this because GNU Malloc has debugging code built in. */
- +#undef USE_GNU_MALLOC
- +
- +/* Define USE_GNU_TERMCAP if you want to use the GNU termcap library
- + instead of your system termcap library. */
- +/* #define USE_GNU_TERMCAP */
- +
- +/* Define HAVE_SETLINEBUF if your machine has the setlinebuf ()
- + stream library call. Otherwise, setvbuf () will be used. If
- + neither of them work, you can edit in your own buffer control
- + based upon your machines capabilities. */
- +# define HAVE_SETLINEBUF
- +
- +/* Define HAVE_VFPRINTF if your machines has the vfprintf () library
- + call. Otherwise, printf will be used. */
- +# define HAVE_VFPRINTF
- +
- +/* Define USE_VFPRINTF_EMULATION if you want to use the BSD-compatible
- + vfprintf() emulation in vprint.c. */
- +/* # define USE_VFPRINTF_EMULATION */
- +
- +/* Define HAVE_GETGROUPS if your OS allows you to be in multiple
- + groups simultaneously by supporting the `getgroups' system call. */
- +/* #define HAVE_GETGROUPS */
- +
- +/* Define SYSDEP_CFLAGS to be the flags to cc that make your compiler
- + work. For example, `-ma' on the RT makes alloca () work. */
- +/* This is a summary of the semi-machine-independent definitions that
- + can go into SYSDEP_CFLAGS:
- +
- + USGr4 - The machine is running SVR4
- + USGr4_2 - The machine is running SVR4.2
- + USG - The machine is running some sort of System V Unix
- + AFS - The Andrew File System is being used
- + BSD_GETPGRP - getpgrp(2) takes a pid argument, a la 4.3 BSD
- + TERMIOS_MISSING - the termios(3) functions are not present or don't
- + work, even though _POSIX_VERSION is defined
- + PGRP_PIPE - Requires parent-child synchronization via pipes to
- + make job control work right
- + HAVE_UID_T - Definitions for uid_t and gid_t are in <sys/types.h>
- + HAVE_GETDTABLESIZE - getdtablesize(2) exists and works correctly
- + HAVE_SETDTABLESIZE - setdtablesize(2) exists and works correctly
- + HAVE_RESOURCE - <sys/resource.h> and [gs]rlimit exist and work
- + MKFIFO_MISSING - named pipes do not work or mkfifo(3) is missing
- + REVERSED_SETVBUF_ARGS - brain-damaged implementation of setvbuf that
- + has args 2 and 3 reversed from the SVID and
- + ANSI standard
- + NO_DEV_TTY_JOB_CONTROL - system can't do job control on /dev/tty
- + BROKEN_SIGSUSPEND - sigsuspend(2) does not work to wake up processes
- + on SIGCHLD
- + HAVE_BCOPY - bcopy(3) exists and works as in BSD
- + HAVE_GETPW_DECLS - USG machines with the getpw* functions defined in
- + <pwd.h> that cannot handle redefinitions in the
- + bash source
- + OPENDIR_NOT_ROBUST - opendir(3) allows you to open non-directory files
- +*/
- +# define SYSDEP_CFLAGS -DHAVE_UID_T -DHAVE_BCOPY -D_BSD_SOURCE -DMKFIFO_MISSING
- +
- +/* Define HAVE_STRERROR if your system supplies a definition for strerror ()
- + in the C library, or a macro in a header file. */
- +#define HAVE_STRERROR
- +
- +/* Define HAVE_DIRENT if you have the dirent library and a definition of
- + struct dirent. If not, the BSD directory reading library and struct
- + direct are assumed. */
- +#define HAVE_DIRENT
- +
- +/* If your system does not supply /usr/lib/libtermcap.a, but includes
- + the termcap routines as a part of the curses library, then define
- + this. This is the case on some System V machines. */
- +/* #define USE_TERMCAP_EMULATION */
- +
- +/* Define VOID_SIGHANDLER if your system's signal () returns a pointer to
- + a function returning void. */
- +/* #define VOID_SIGHANDLER */
- +
- +/* Define EXTRA_LIB_SEARCH_PATH if your required libraries (or standard)
- + ones for that matter) are not normally in the ld search path. For
- + example, some machines require /usr/ucblib in the ld search path so
- + that they can use -lucb. */
- +/* #define EXTRA_LIB_SEARCH_PATH /usr/ucblib */
- +
- +/* Define SEARCH_LIB_NEEDS_SPACE if your native ld requires a space after
- + the -L argument, which gives the name of an alternate directory to search
- + for libraries specified with -llib. For example, the HPUX ld requires
- + this:
- + -L lib/readline -lreadline
- + instead of:
- + -Llib/readline -lreadline
- + */
- +/* #define SEARCH_LIB_NEEDS_SPACE */
- +
- +/* Define LD_HAS_NO_DASH_L if your ld can't grok the -L flag in any way, or
- + if it cannot grok the -l<lib> flag, or both. */
- +/* #define LD_HAS_NO_DASH_L */
- +# if defined (LD_HAS_NO_DASH_L)
- +# undef SEARCH_LIB_NEEDS_SPACE
- +# endif /* LD_HAS_NO_DASH_L */
- +
- +#endif /* atarist */
- +
- /* **************************************************************** */
- /* */
- /* Generic Entry */
- --- 1.1 1994/01/06 00:33:18
- +++ subst.c 1994/03/20 19:44:14
- @@ -1622,7 +1622,7 @@
- return (tname);
- }
-
- -#if !defined (_POSIX_VERSION)
- +#if !defined (_POSIX_VERSION) && !defined (atarist)
- int
- mkfifo (path, mode)
- char *path;
- @@ -1884,7 +1884,7 @@
- return ((char *)NULL);
-
- /* Pipe the output of executing STRING into the current shell. */
- - if (pipe (fildes) < 0)
- + if (sim_pipe (fildes) < 0)
- {
- report_error ("Can't make pipes for command substitution!");
- goto error_exit;
- @@ -1922,8 +1922,8 @@
- error_exit:
- if (istring)
- free (istring);
- - close (fildes[0]);
- - close (fildes[1]);
- + sim_pipeclose (fildes[0]);
- + sim_pipeclose (fildes[1]);
- return ((char *)NULL);
- }
-
- @@ -1949,12 +1949,12 @@
- if ((fildes[1] != fileno (stdin)) &&
- (fildes[1] != fileno (stdout)) &&
- (fildes[1] != fileno (stderr)))
- - close (fildes[1]);
- + sim_pipeclose (fildes[1]);
-
- if ((fildes[0] != fileno (stdin)) &&
- (fildes[0] != fileno (stdout)) &&
- (fildes[0] != fileno (stderr)))
- - close (fildes[0]);
- + sim_pipeclose (fildes[0]);
-
- /* The currently executing shell is not interactive. */
- interactive = 0;
- @@ -1982,7 +1982,7 @@
- close_pgrp_pipe ();
- #endif /* JOB_CONTROL && PGRP_PIPE */
-
- - close (fildes[1]);
- + sim_pipeclose (fildes[1]);
-
- if (!istream)
- {
- @@ -2020,7 +2020,7 @@
- }
-
- fclose (istream);
- - close (fildes[0]);
- + sim_pipeclose (fildes[0]);
-
- last_command_exit_value = wait_for (pid);
- last_command_subst_pid = pid;
- --- 1.1 1994/01/06 15:56:36
- +++ trap.c 1994/01/06 00:24:44
- @@ -31,7 +31,11 @@
- #endif /* !HAVE_STRING_H */
-
- #include "shell.h"
- +#if defined (atarist)
- +extern char *signal_names[];
- +#else
- #include "signames.h"
- +#endif /* !atarist */
-
- /* Flags which describe the current handling state of a signal. */
- #define SIG_INHERITED 0x0 /* Value inherited from parent. */
- --- 1.1 1994/01/06 15:44:00
- +++ builtins/times.def 1994/01/06 00:24:46
- @@ -42,6 +42,10 @@
- # include <sys/times.h>
- #endif /* !HAVE_RESOURCE */
-
- +#if defined (atarist)
- +#include <stdio.h>
- +#endif /* atarist */
- +
- /* Print the totals for system and user time used. The
- information comes from variables in jobs.c used to keep
- track of this stuff. */
- --- 1.1 1994/01/05 23:58:10
- +++ lib/readline/bind.c 1994/01/06 00:24:52
- @@ -81,7 +81,9 @@
- extern char **rl_funmap_names ();
-
- static int glean_key_from_name ();
- +#if !defined(atarist)
- static int stricmp (), strnicmp ();
- +#endif /* !atarist */
-
- #if defined (STATIC_MALLOC)
- static char *xmalloc (), *xrealloc ();
- @@ -1365,6 +1367,7 @@
-
- /* Whoops, Unix doesn't have strnicmp. */
-
- +#if !defined (atarist)
- /* Compare at most COUNT characters from string1 to string2. Case
- doesn't matter. */
- static int
- @@ -1401,6 +1404,7 @@
- }
- return (*string1 | *string2);
- }
- +#endif /* !atarist */
-
- /* Determine if s2 occurs in s1. If so, return a pointer to the
- match in s1. The compare is case insensitive. */
-